<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 <jsp:include page="../restab.jsp" flush="true" />
</head>
<body>
     <jsp:include page="../header.jsp" flush="true" />
       <div id="body"> 
            <div class="pShow">
            <div class="pShowImg"><img src="${pageContext.request.contextPath}/resources/images/apple.jpg"  alt="product image"/></div>
            <div class="pInfo">
			<ul>
			<li>${specifyProduct.productName}</li>
			<li>库存量:${specifyProduct.quantity}</li>
			<li>售价:${specifyProduct.salesPrice}</li>
			<li>
			   <div class="orderForm">
			     <form  action="${pageContext.request.contextPath}/order/addorder" method="get">
			         <input type="hidden" name="productId" value="${specifyProduct.productId}" />
			          <label for="quantity">购买数量:</label><input id="quantity" type="number" name="quantity" min="1" max="${specifyProduct.quantity}" />
			          <input type="submit" value="购买" />
			     </form>
			     
			       
			   </div>
			</li>
			<ul>
		     </div>
			</div>
      </div>
    	
</body>
</html>

 